package com.weiqiao.mall.repository.impl;

import com.weiqiao.base.dao.impl.BaseMongoDaoImpl;
import com.weiqiao.mall.repository.IDistributeRepository;
import org.bson.conversions.Bson;
import org.springframework.stereotype.Repository;

/**
 * @author kjy
 */
@Repository("DistributeRepositoryImpl")
public class DistributeRepositoryImpl extends BaseMongoDaoImpl implements IDistributeRepository {

    private final String collectionName = "mall_retail";

    @Override
    public boolean updateOne(Bson filter, String json) {
        return super.updateOne(collectionName, filter, json, true);
    }

    @Override
    public String findOne(Bson filter) {
        return super.findOne(collectionName, filter);
    }

    @Override
    public boolean deleteOne(Bson filter) {
        return super.deleteOne(collectionName, filter);
    }
}
